#
#   pimento.rb - Pimento WebDAV client
#   	$Release Version: 0.0.1$
#   	$Revision: $
#   	$Date: $
#   	by OncleCurl
#

require 'pp'

Version = '0.0.1'

module Pimento

  @@verbose = false

  def self.verbose=(v)
    @@verbose = v
  end

  def self.vputs(*s)
    puts *s if @@verbose
  end

  def self.vp(*s)
    p *s if @@verbose
  end

  def self.vpp(*s)
    pp *s if @@verbose
  end

  # 実行ファイル名を保存
  PIMENTO = File.basename($0)

  module Curl
  end

end

require 'pimento/option'
require 'pimento/command'

Pimento::Option.parse!(ARGV)

puts 'curl: ' + Pimento::Option.curl_options

if ARGV[0].is_a? String then
  cname = ARGV[0]
  args  = ARGV[1..-1]
else
  puts Pimento::Option::Help.new(true)
end

Pimento::Command::get_command_instance(cname, *args).execute

# vi: ts=8 sw=2 tw=72 fenc=utf-8
# END OF FILE
